<?php

namespace Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Friend
 *
 * @ORM\Table(name="friend")
 * @ORM\Entity
 */
class Friend
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="bigint", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    protected $id;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="last_modified", type="datetime", nullable=false)
     */
    protected $lastModified;

    /**
     * @var \Entity\Member
     *
     * @ORM\ManyToOne(targetEntity="Entity\Member")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="member_id", referencedColumnName="id")
     * })
     */
    protected $member;

    /**
     * @var \Entity\Member
     *
     * @ORM\ManyToOne(targetEntity="Entity\Member")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="member_id_friend", referencedColumnName="id")
     * })
     */
    protected $memberFriend;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set lastModified
     *
     * @param \DateTime $lastModified
     * @return Friend
     */
    public function setLastModified($lastModified)
    {
        $this->lastModified = $lastModified;
    
        return $this;
    }

    /**
     * Get lastModified
     *
     * @return \DateTime 
     */
    public function getLastModified()
    {
        return $this->lastModified;
    }

    /**
     * Set member
     *
     * @param \Entity\Member $member
     * @return Friend
     */
    public function setMember(\Entity\Member $member = null)
    {
        $this->member = $member;
    
        return $this;
    }

    /**
     * Get member
     *
     * @return \Entity\Member 
     */
    public function getMember()
    {
        return $this->member;
    }

    /**
     * Set memberFriend
     *
     * @param \Entity\Member $memberFriend
     * @return Friend
     */
    public function setMemberFriend(\Entity\Member $memberFriend = null)
    {
        $this->memberFriend = $memberFriend;
    
        return $this;
    }

    /**
     * Get memberFriend
     *
     * @return \Entity\Member 
     */
    public function getMemberFriend()
    {
        return $this->memberFriend;
    }
}
